package com.whcoding.test.pojo;

import com.whcoding.test.common.EnumType;
import com.whcoding.test.constant.YesOrNoEnum;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-02-15 11:32
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
public class OrmCustomerVO extends BaseVO implements Serializable {

	private static final long serialVersionUID = 284532227990707328L;


	private Long id;


	/**
	 * 客户名称
	 */
	private String customerName;

	/**\
	 * 客户编码
	 * 赋值 默认值为空
	 */
	@Builder.Default
	private String customerNo="";

	/**
	 * 客户id
	 */
	private Integer customerId;

	/**
	 * 客户地址
	 */
	@Size(max = 100, message = "客户地址长度不符合规范")
	private String customerAddress;

	/**
	 * 客户类型
	 */
	private Integer customerType;

	/**
	 * 资产金额
	 */
	private BigDecimal customerFund;

	/**
	 * 订单日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderDate;

	/**
	 * 订单号
	 */
	private String orderNo;

	/**
	 * 订单id
	 */
	private String orderId;

	/**
	 * 是否有效
	 */
	@EnumType(YesOrNoEnum.class)
	private Integer isValid;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	/**
	 * 创建人
	 */
	private Integer createUser;

	/**
	 * 更新人
	 */
	private Integer updateUser;

}
